package com.demo.components;


import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "car")
@Data
@NoArgsConstructor
@ToString
public class Car {
    private String name;
    private String price;
}
